package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserCollection;
import com.yanqu.road.entity.player.UserCollectionPavilion;

import java.util.Map;


public class UserCollectionBussiness {

	public static UserCollectionPavilion getUserCollectionPavilion(long userId) {
		return DaoHelper.getUserCollectionPavilionDaoImpl().getUserCollectionPavilion(userId);
	}

	public static boolean addUserCollectionPavilion(UserCollectionPavilion userCollectionPavilion) {
		return DaoHelper.getUserCollectionPavilionDaoImpl().add(userCollectionPavilion);
	}

	public static boolean updateUserCollectionPavilion(UserCollectionPavilion userCollectionPavilion) {
		return DaoHelper.getUserCollectionPavilionDaoImpl().update(userCollectionPavilion);
	}

	public static Map<Integer, UserCollection> getUserCollectionMap(long userId) {
		return DaoHelper.getUserCollectionDaoImpl().getUserCollectionMap(userId);
	}

	public static boolean addUserCollection(UserCollection userCollection) {
		return DaoHelper.getUserCollectionDaoImpl().add(userCollection);
	}

	public static boolean updateUserCollection(UserCollection userCollection) {
		return DaoHelper.getUserCollectionDaoImpl().update(userCollection);
	}
}
